﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data;

namespace WebApplication1
{
    public partial class Del_Task : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {


                ViewState["UrlReferrer"] = Request.UrlReferrer.ToString();

            }

            string Flag = Request["Flag"].Trim().ToString();







            Data md = new Data();
            DataSet ds = new DataSet();
            md.DEL_Task_By_Flag(Flag);
            Response.Redirect((String)ViewState["UrlReferrer"]);
        }
    }
}